<table>
    <tbody>
    <volist name="comments" id="list">
        <tr data-id="{$list['id']}">
            <td class="sign" axis="col6">
                <div style="width: 24px;"><i class="ico-check"></i></div>
            </td>
            <td class="handle" >
                <div style="text-align:left;   min-width:50px !important; max-width:inherit !important;">
                  <span class="btn"><em><i class="fa fa-cog"></i>设置<i class="arrow"></i></em>
                  <ul>
                    <li><a href="#" onclick="comment_msg('{$list.id}')">详情</a></li>
                    <li><a href="javascript:void(0);" onclick="publicHandle('{$list.id}','del')">删除</a></li>
                  </ul>
                  </span>
                </div>
            </td>
            <td align="center" axis="col0">
                <div style="width: 50px;">{$list.id}</div>
            </td>
            <td align="center" axis="col0">
                <div style="text-align: center; width: 120px;">{$list.user_name}</div>
            </td>
            <td align="center" axis="col0">
                <div style="text-align: center; width: 300px;">{$list.msg|substr=0,50}</div>
            </td>


            <td align="center" axis="col0">
                <div style="text-align: center; width: 100px;">
                    <if condition='$list.state eq 1'>
                        <span class="yes" onClick="changeTableVal('comment','id','{$list.id}','state',this)" ><i class="fa fa-check-circle"></i>是</span>
                        <else />
                        <span class="no" onClick="changeTableVal('comment','id','{$list.id}','state',this)" ><i class="fa fa-ban"></i>否</span>
                    </if>
                </div>
            </td>

            <td align="center" axis="col0">
                <div style="text-align: center; width: 150px;">{$list.create_time}</div>
            </td>

            <td align="" class="" style="width: 100%;">
                <div>&nbsp;</div>
            </td>
        </tr>
    </volist>
    </tbody>
</table>
<!--分页位置--> {$page}
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form2',cur_page);
    });


    function comment_msg(bid){
        //{:U('Admin/Comment/edit_comment',array('id'=>$list['id']))}
        console.log('url=abc='+bid);
        // var url = "{:U('Admin/Comment/edit_comment',array('id'=>$list['id']))}";
        var url = "/admin/Comment/edit_comment/id/"+bid;
        console.log('url='+url);
        layer.open({
            type: 2,
            title: '查看详情',
            shadeClose: true,
            shade: 0.3,
            area: ['70%', '85%'],
            content: url,
        });
    }


</script>